import request from '@/utils/request'

// 查询打卡活动列表
export function tradePunchActivityList(query) {
  return request({
    url: '/shenye/trade/punch/activity/list',
    method: 'get',
    params: query
  })
}

// 查询勋章卡下拉框
export function activitySelect() {
  return request({
    url: '/shenye/trade/punch/activity/medal/card/select',
    method: 'get',
    
  })
}
// 查询店铺下拉框
export function activityShopSelect(params) {
  return request({
    url: '/shenye/trade/punch/activity/shop/select',
    method: 'get',
    params
  })
}
// 新增打卡活动
export function addTradePunchActivity(data) {
  return request({
    url: '/shenye/trade/punch/activity',
    method: 'post',
    data
  })
}
// 查询打卡活动详情
export function tradePunchDetail(id) {
  return request({
    url: '/shenye/trade/punch/activity/detail/' + id,
    method: 'get',
  })
}
// 编辑打卡活动
export function editTradePunchActivity(data) {
  return request({
    url: '/shenye/trade/punch/activity',
    method: 'put',
    data: data
  })
}

// 查询打卡活动列表
export function orderList(query) {
    return request({
      url: '/shenye/trade/punch/activity/order/list',
      method: 'get',
      params: query
    })
  }
//查询权益明细
export function equityList(query) {
    return request({
      url: '/shenye/trade/punch/activity/equity/list',
      method: 'get',
      params: query
    })
}
//查询奖励明细
export function incentiveList(query) {
    return request({
      url: '/shenye/trade/punch/activity/incentive/list',
      method: 'get',
      params: query
    })
}



